package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.MaintenanceOrderElectricianTaskOperationValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = MaintenanceOrderElectricianTaskOperationValidator.class)
public @interface ValidMaintenanceOrderElectricianTaskOperation {

    String message() default "无效的维保单任务操作，允许值：accept/reject/on-site/processing/resolve/view";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
